    <%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

        ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')

        criteria = ay.product_search_criteria.select_facets_by_group_id(0, 10).select_facets_by_group_id(2, 4)

        productResult = ay.fetch_product_search(criteria)
        facetsCounts = productResult.facets

        facetsCounts.each do |key, facetsCount|
    %>
            <%= 'Eigenschaft ' + facetsCount.group_id + ': ' + String(facetsCount.product_count_total) %>
    <%
            facetsCount.facet_count_list.each do |facetCount|
    %>     
                <%= ' ' + facetCount.facet.name + ': ' + String(facetCount.count) %>
    <%
            end
        end
    %>